<?php

use Drupal\shusy_store_level\Entity\ShusyStoreLevel;

function shusy_store_level_shusy_store_level_add_page() {
  $e = new ShusyStoreLevel();
  module_load_include('inc', 'shusy_store_level', 'shusy_store_level.forms');
  return drupal_get_form('shusy_store_level_shusy_store_level_entity_form', $e, 'add');
}

function shusy_store_level_shusy_store_level_view_page(ShusyStoreLevel $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_store_level_shusy_store_level_edit_page(ShusyStoreLevel $e) {
  module_load_include('inc', 'shusy_store_level', 'shusy_store_level.forms');
  return drupal_get_form('shusy_store_level_shusy_store_level_entity_form', $e, 'edit');
}

function shusy_store_level_shusy_store_level_delete_page(ShusyStoreLevel $e) {
  module_load_include('inc', 'shusy_store_level', 'shusy_store_level.forms');
  return drupal_get_form('shusy_store_level_shusy_store_level_delete_form', $e);
}

